const { ccclass, property } = cc._decorator;

@ccclass
export default class NewClass extends cc.Component {

    @property(cc.Prefab)
    alert_set: cc.Prefab;

    btnClick(e, str) {
        if (str == 'set') {
            cc.instantiate(this.alert_set).parent = this.node;
        }
    }
}
